package cn.yh.shop.user.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.user.dao.AddressDao;
import cn.yh.shop.user.model.User;
import cn.yh.shop.user.model.UserAddress;
import cn.yh.shop.user.service.IAddressService;
/**
* @Description:IUserService实现层
* @author:仇文文
* @time:2016年12月15日 上午9:07:38
*/
@Service("addressService")
public class AddressServiceImpl implements IAddressService{
	@Autowired
	private AddressDao addressDao;
	@Override
	public List<UserAddress> showAllAddress(User user) {
		// TODO Auto-generated method stub
		return addressDao.showAllAddress(user);
		
	}
	@Override
	public UserAddress findAddress(UserAddress userAddress) {
		return addressDao.findAddress(userAddress);
	}

	@Override
	public void addAddress(UserAddress userAddress) {
		addressDao.addAddress(userAddress);
	}

	@Override
	public void editAddress(UserAddress userAddress) {
		addressDao.editAddress(userAddress);
	}

	@Override
	public void delAddress(UserAddress userAddress) {
		addressDao.delAddress(userAddress);
	}
	
	

}
